home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / strdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-25  |  2.6 KB  |  83 lines

  1. /* @(#)strdefs.h    1.1 96/06/26 Copyright 1996 J. Schilling */
  2. /*
  3.  *    Definitions for strings
  4.  *
  5.  *    Copyright (c) 1996 J. Schilling
  6.  */
  7. /*
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2, or (at your option)
  11.  * any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef _STRDEFS_H
  24. #define    _STRDEFS_H
  25.  
  26. #ifndef    _MCONFIG_H
  27. #include <mconfig.h>
  28. #endif
  29.  
  30. #ifdef    HAVE_STRING_H
  31. #include <string.h>
  32. #else    /* HAVE_STRING_H */
  33.  
  34. #ifndef NULL
  35. #define    NULL    0
  36. #endif
  37.  
  38. extern void *memcpy    __PR((void *, const void *, int));
  39. extern void *memmove    __PR((void *, const void *, int));
  40. extern char *strcpy    __PR((char *, const char *));
  41. extern char *strncpy    __PR((char *, const char *, int));
  42.  
  43. extern char *strcat    __PR((char *, const char *));
  44. extern char *strncat    __PR((char *, const char *, int));
  45.  
  46. extern int memcmp    __PR((const void *, const void *, int));
  47. extern int strcmp    __PR((const char *, const char *));
  48. extern int strcoll    __PR((const char *, const char *));
  49. extern int strncmp    __PR((const char *, const char *, int));
  50. extern int strxfrm    __PR((char *, const char *, int));
  51.  
  52. extern void *memchr    __PR((const void *, int, int));
  53. extern char *strchr    __PR((const char *, int));
  54.  
  55. extern int strcspn    __PR((const char *, const char *));
  56. /*#pragma int_to_unsigned strcspn*/
  57.  
  58. extern char *strpbrk    __PR((const char *, const char *));
  59. extern char *strrchr    __PR((const char *, int));
  60.  
  61. extern int strspn    __PR((const char *, const char *));
  62. /*#pragma int_to_unsigned strspn*/
  63.  
  64. extern char *strstr    __PR((const char *, const char *));
  65. extern char *strtok    __PR((char *, const char *));
  66. extern void *memset    __PR((void *, int, int));
  67. extern char *strerror    __PR((int));
  68.  
  69. extern int strlen    __PR((const char *));
  70. /*#pragma int_to_unsigned strlen*/
  71.  
  72. extern void *memccpy    __PR((void *, const void *, int, int));
  73.  
  74. extern int strcasecmp    __PR((const char *, const char *));
  75. extern int strncasecmp    __PR((const char *, const char *, int));
  76.  
  77. /*#define    index    strchr*/
  78. /*#define    rindex    strrchr*/
  79.  
  80. #endif    /* HAVE_STRING_H */
  81.  
  82. #endif    /* _STRDEFS_H */
  83.